package com.kc.business.domain;

import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

/**
 * 评论相关
 */
@Data
@Table(name = "kc_comment")
public class BizComment {
    /*评论主键id*/
    @Id
    private Integer id;
    /*主体id(商品id,视频id等)*/
    private Integer themeId;
    /*评论类别*/
    private Integer themeType;
    /*主体类别名称*/
    @Transient
    private String themeTypeName;
    /*主体名称*/
    private String themeName;
    /*评论内容*/
    private String content;
    /*用户id*/
    private Integer uid;
    /*用户昵称*/
    private String nickname;
    /*头像*/
    private String thumbImg;
    /*发布时间*/
    private String createTime;
    /*评分*/
    private Integer score;
    /*图片列表*/
    private String images;
    /*图片列表，出参*/
    private List<String> imagesList;
    /*是否为作者：1作者，0不是作者*/
    private Integer isAuthor;
    /*状态*/
    private Integer status;
    /*删除标记*/
    private Integer isDeleted = 0;

}
